package eu.liquify.ui {
	public class Binding {
		public var item:IHasBindValue;
		public var path:String;
		public var ref:PropertyReference;
		public function Binding(item:IHasBindValue, target:Object, property:String, path:String) {
			this.item = item;
			this.path = path;
			ref = new PropertyReference(target, property);
			item.bindValue = ref.getProperty();
			
		}
		public function pushToTarget():void {
			ref.setProperty(item.bindValue);
		}
		public function pullFromTarget():void {
			item.bindValue = ref.getProperty();
		}
	}

}